package de.preisrobot.entity;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

@Entity
@Table(name="preisliste")
public class Preis implements Serializable{

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	@Temporal(TemporalType.TIMESTAMP)
	private Date creationDate;
	private String preis;
	private long artikelId;
	@Id
	private long id;
	
	public void setArtikelId(long id) {
		this.artikelId =id;
		
	}

	public void setPreis(String preis) {
	 this.preis = preis;
		
	}

	public void setCreationDate(Date date) {
		this.creationDate=date;
		
	}

	public long getId() {
		return id;
	}

	public void setId(long id) {
		this.id = id;
	}

	public Date getCreationDate() {
		return creationDate;
	}

	public String getPreis() {
		return preis;
	}

	public long getArtikelId() {
		return artikelId;
	}

}
